<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	var _self;
	export default {
		data() {
			return {
				CallbackParams: [],
				url: '',
			}
		},
		onLoad(params) {
			_self = this;
			_self.CallbackParams = JSON.parse(params.CallbackParams);
			//保险页面回调
			var paramtext = 'id=' + _self.CallbackParams.flowID +
				'&recallId=' + _self.CallbackParams.recallId + '&sequence=' + _self.CallbackParams.sequence;
			 _self.url = 'https://ticket.weichengbx.com:9206/Order/BaseCallback?' + paramtext;
			 // console.log('paramtext',paramtext);
			 //_self.url = 'http://localhost:9528/Order/BaseCallback?' + paramtext;
			 // _self.url = 'http://localhost:9528?' + paramtext;
			 //_self.url = 'https://ticket.weichengbx.com:9206/Client/Login'; 
		},
		methods: {
			message({
				detail: {
					data
				}
			}) {
				console.log('====统计小程序webview绑定的message方法====')
				const fileData = data[0]; //queryPam
				console.log('$$$$$$$$$$$$$$$$$$$$$$$$$=111=message==fileData====', fileData)
				uni.$emit("tongjiTo", fileData);
				// if(fileData.queryPam == 'ConfirmOrder'){
				// 	uni.navigateTo({
				// 		url:'../Order/ConfirmOrder?ticketCheck=' + JSON.stringify(_self.ticketCheck)
				// 	})
				// }else{
				// 	uni.switchTab({
				// 		url: '../../pages/Home/Home'
				// 	})
				// }
			},
		}
	}
</script>

<style>

</style>